/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.own.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.datasource.DataSourceHolder;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.own.entity.OwnMedicineFieldManagement;

import java.util.List;

/**
 * 田间管理信息DAO接口
 * @author F
 * @version 2019-09-27
 */
@MyBatisDao(dataSourceName = DataSourceHolder.EMPTY)
public interface OwnMedicineFieldManagementDao extends CrudDao<OwnMedicineFieldManagement> {

    /**
     * 根据种植信息id以及管理类型查询数据
     * @param plantId
     * @param type
     * @return
     */
    List<OwnMedicineFieldManagement> findByPlantAndType(String plantId, String type);

    /**
     * 根据种植信息id查询
     * @param plantId
     * @return
     */
    List<OwnMedicineFieldManagement> findByPlantId(String plantId);
	
}